package org.magento.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
//This page present  loggout conformation page
public class LogoutConfirmPage extends Page {
	//locators: 
	
	//Actions 
	public HomePage waitHomePageToLoad() throws Exception    {
	waitForFiveSeconds();
	return PageFactory.initElements(driver, HomePage.class);
	}
	
	//Assertions 
	public boolean isUserLoggedout() {
	return driver.findElement(By.cssSelector("BODY")).getText()
			.contains("You are now logged out");
	}
	
	//Auto - generated 
	public LogoutConfirmPage(WebDriver driver) {
		super(driver);
	}

	@Override
	public void open() {
			
	}


	

}
